# -*- coding: utf-8 -*-
"""
@Time ： 2021/12/28 13:55
@Auth ： quanjie
@File ：test.py
@IDE ：PyCharm

"""

import asyncio
from pyppeteer import launch
from pyquery import PyQuery as pq

async def main():
    browser = await launch()
    page = await browser.newPage()
    await page.goto('https://www.google.com/')
    doc = pq(await page.content())
    print('Quotes:', doc('.quote').length)
    await browser.close()

asyncio.get_event_loop().run_until_complete(main())